<div id="coursework" class="courseModule">
    <div class="panel">
         <div class="panel-body">
            <div class="top clearfix" >
                <div class="right pull-left">
                    <div class="top" >
                        <b>我的作业</b>
                        <div ng-repeat="item in data.terms" ng-if="item.id==data.currTerm"><i></i>本学期共有<span>{{item.scores.length}}</span>门课程</div>
                    </div>
                    <div class="bottom">
                       <div class="buttonGroupDirective">
                            <button type="button"  class="btn" ng-repeat="item in data.terms" ng-class="{'active':item.id==data.currTerm}" ng-click="showTerm(item.id)" >{{item.name}}</button>
                        </div>
                    </div>
                    
                </div>
            </div>
            <div class="bottom" >
                <div>{{item.termId}}</div>
                <div class="clearfix">
                    <div class="left pull-left"><i></i>作业列表</div>
                    <!--<div class="right pull-right">作业剩余量<span>15</span>门</div>-->
                </div>
                <table class="table record table-bordered table-striped">
                    <tr>
                        <th >课程</th>
                        <th>课时</th>
                        <th>作业状态</th>
                        <th>操作</th>                
                    </tr>
                    <tr ng-repeat="list in data.works" ng-if="list.termId==data.currTerm">
                        <td>{{list.courseName}}</td>
                        <td>{{list.course.classTime}}</td>
                        <td>{{list.finishedCount == 0 ? "未完成" : "已完成" + list.finishedCount + "/"+viewBag.scoreSetup.workMaxCount+"次"}}</td>
                        <td>
                            <button class="btn" ng-click="state(list.id)" ng-disabled="{{list.finishedCount}} >= {{viewBag.scoreSetup.workMaxCount}}">继续作业</button>
                        </td>
                    </tr>
                    
                </table>
            </div>
        </div>
    </div>
</div>